package com.wicket.okrframework.integration.dto;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc CheckItemStatDto
 * @使用场景
 */
@Data
public class CheckItemStatDto extends BaseDto implements Serializable {

    /**
     * 状态校验项ID:
     */
    @ApiModelProperty("状态校验项ID")
    private String statusCheckItemId;

    /**
     * 检查项标识:
     */
    @ApiModelProperty("检查项标识")
    private String checkItemCode;

    /**
     * 内容对象类型编码:
     */
    @ApiModelProperty("内容对象类型编码")
    private String objectTypeCode;

    /**
     * 内容对象实例ID:
     */
    @ApiModelProperty("内容对象实例ID")
    private String entityId;

    /**
     * 是否已完成:
     */
    @ApiModelProperty("是否已完成")
    private String isComplete;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CheckItemStatDto that = (CheckItemStatDto) o;
        return (
                statusCheckItemId == that.statusCheckItemId &&
                        checkItemCode == that.checkItemCode &&
                        objectTypeCode == that.objectTypeCode &&
                        entityId == that.entityId &&
                        isComplete == that.isComplete
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                statusCheckItemId,
                checkItemCode,
                objectTypeCode,
                entityId,
                isComplete
        );
    }

}
